|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<EngineType>
content.EngineType
public enum EngineType
The enum class contains all possible engine types for the vehicles. Allowing Duplicates, several teams can have same chassis.
| Enum Constant Summary | |
|---|---|
BMW
German manufacturer |
|
Ferrari
Italian manufacturer |
|
Mercedes
German manufacturer |
|
Renault
French manufacturer |
|
Toyota
Japanese manufacturer |
|
| Method Summary | |
|---|---|
static EngineType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EngineType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final EngineType Mercedes
public static final EngineType Toyota
public static final EngineType BMW
public static final EngineType Renault
public static final EngineType Ferrari
| Method Detail |
|---|
public static final EngineType[] values()
for(EngineType c : EngineType.values())
System.out.println(c);
public static EngineType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||